﻿#ifndef _OI_PLSCANNERDLL_VALUEPAGE_HPP_
#define _OI_PLSCANNERDLL_VALUEPAGE_HPP_

#include "PLScannerCore/Camera/OiAcquire.hpp"

namespace Oi
{
    namespace PLScannerDll
    {
        class ValuePage : public PageAbstract
        {
            Q_OBJECT

        public:
            ValuePage(QWidget * parent = nullptr);

        public:
            void setParams(const PLScannerCore::ProductParams& params);
            int setResult(const PLScannerCore::WorkResult::Result& result);
            int setMsrResult(const std::vector<QPointF>& msrRes, bool insert);
            int setValue(const double value, const double width);
            void setRun(bool flag);
            void toCurrent();
            void updatePermission();
            void update();

        protected:
            void resizeEvent(QResizeEvent *event);
            void showEvent(QShowEvent *event);


        private:
            OI_DECLARE_IMPL(ValuePage);
            OI_DISABLE_COPY(ValuePage);

        };
    }
}

#endif